// import 'package:amap_flutter_map/amap_flutter_map.dart';
// import 'package:flutter/cupertino.dart';
//
// import '../const_config.dart';
//
// class MapWidget extends StatefulWidget {
//   const MapWidget({Key? key}) : super(key: key);
//
//   @override
//   State<MapWidget> createState() => _MapWidgetState();
// }
//
// class _MapWidgetState extends State<MapWidget> {
//   late AMapController _mapController;
//   ///是否支持缩放手势
//   final bool _zoomGesturesEnabled = true;
//
//   ///是否支持滑动手势
//   final bool _scrollGesturesEnabled = true;
//
//   ///是否支持旋转手势
//   final bool _rotateGesturesEnabled = true;
//
//   ///是否支持倾斜手势
//   final bool _tiltGesturesEnabled = true;
//   @override
//   Widget build(BuildContext context) {
//     final AMapWidget map = AMapWidget(
//       // apiKey: ConstConfig.amapApiKeys,
//       // privacyStatement: ConstConfig.amapPrivacyStatement,
//       rotateGesturesEnabled: _rotateGesturesEnabled,
//       scrollGesturesEnabled: _scrollGesturesEnabled,
//       tiltGesturesEnabled: _tiltGesturesEnabled,
//       zoomGesturesEnabled: _zoomGesturesEnabled,
//     );
//     return  map;
//   }
// }
